﻿using GazziWpf.Application.Core.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace GazziWpf.Application.Core
{
    public class CoreModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            regionManager.RegisterViewWithRegion("ContentRegion", typeof(ViewA));
            var moduleManager = containerProvider.Resolve<IModuleCatalog>();
            moduleManager.AddModule<Ef.EfModule>();
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }

      
    }
}